package CreateNewItem.WIN;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   DnkFunctions.java


public class DnkFunctions
{

    public DnkFunctions()
    {
    }

    public int getCategoryID(String arg)
    {
        int ctg = 0;
        if(arg.equals("BC"))
            ctg = 1;
        else
        if(arg.equals("HF"))
            ctg = 2;
        else
        if(arg.equals("LT"))
            ctg = 3;
        else
        if(arg.equals("CL"))
            ctg = 4;
        else
        if(arg.equals("MR"))
            ctg = 5;
        else
        if(arg.equals("OT"))
            ctg = 6;
        return ctg;
    }
    public String getCategoryNAME(String arg){
        String table="";

        if(arg.equals("1"))
            table="BC";
        else
        if(arg.equals("2"))
            table="HF";
        else
        if(arg.equals("3"))
            table="LT";
        else
        if(arg.equals("4"))
            table="CL";
        else
        if(arg.equals("5"))
            table="MR";
        else
        if(arg.equals("6"))
            table="OT";


        return table;
    }
    public String getCategoryNumToNAME(int arg){
        String table="";

        if(arg==1)
            table="BC";
        else
        if(arg==2)
            table="HF";
        else
        if(arg==3)
            table="LT";
        else
        if(arg==4)
            table="CL";
        else
        if(arg==5)
            table="MR";
        else
        if(arg==6)
            table="OT";


        return table;
    }
}
